<ion-view view-title="证件信息" name="login-view">
  <ion-nav-bar class="item-customer-bg-darkred" align-title="center">
    <ion-nav-back-button class="button-clear">
      <i class="ion-arrow-left-c font_arrow"></i>
    </ion-nav-back-button>
  </ion-nav-bar>

  <ion-content class ="ywkh_content_bg">
    <div class="" style="border-bottom: solid #ddd 1px"><div class="ywkh_jd">&nbsp;</div></div>
    <form name="khrwformstep1" novalidate>
      <div class="list list-inset">

        <label class="item item-input">
          <div class="font_info2 col col-25">联系电话</div>
          <div class="font_info2 col col-75"><input class="ywkh_input2" name="ConTel" type="text" ng-model="params.ConTel" ng-pattern="/^(13[0-9]|14[0-9]|15[0-9]|18[0-9])\d{8}$/i" required/></div>
        </label>

        <div class="item item-input">
          <div class="font_info2 col col-25">客户姓名</div>
            <div class="col col-50"><input class="ywkh_input2" type="text" ng-model="params.IdCard.name" readonly/></div>
            <div class="col col-25"><button class="button bt_idcard" ng-click="ReadIdCard()">身份证验证</button></div>
        </div>

        <label class="item item-input">
          <div class="font_info2 col col-25">客户性别</div>
          <div class="font_info2 col col-75"><input class="ywkh_input2" type="text" ng-model="params.IdCard.sex" readonly/></div>
        </label>

        <!--<label class="item item-input">
          <div class="font_info2 col col-25">证件类型</div>
          <div class="font_info2 col col-75"><input class="ywkh_input2" type="text" ng-model="params.IdCard.Type" readonly/></div>
        </label>-->

        <label class="item item-input">
          <div class="font_info2 col col-25">证件号码</div>
          <div class="font_info2 col col-75"><input class="ywkh_input2" type="text" ng-model="params.IdCard.cardNo" readonly/></div>

        </label>

        <label class="item item-input">
          <div class="font_info2 col col-25">证件地址</div>
          <div class="font_info2 col col-75"><input id="step1_address" name="address" type="text" ng-model="params.IdCard.address" readonly/></div>
        </label>

        <label class="item item-input">
        <div class="font_info2 col col-25">出生日期</div>
        <div class="font_info2 col col-75"><input class="ywkh_input2" type="text" ng-model="params.IdCard.birth" readonly/></div>
      </label>

      </div>
      <div class="row">
        <div class="col col-50">
          <button  class="button button-full wkh_button_light" ng-click="reset()">重置</button><!--{{khrwformstep1.$valid}}可以验证整个表单是否通过验证-->
        </div>
        <div class="col col-50">
          <a class="button button-full wkh_button_dark" ng-disabled="!((params.step1==1)&&(khrwformstep1.$valid))" ng-href="#ywkh/step2">提交</a>
        </div>
      </div>

    </form>
  </ion-content>
</ion-view>

